package cn.com.customer.manager.adapter

import cn.com.customer.manager.R
import cn.com.customer.manager.bean.ReceivedPayment
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.xuexiang.xui.utils.ResUtils.getString

class RemittanceAdapter (rid: Int): BaseQuickAdapter<ReceivedPayment, BaseViewHolder>(rid) {
    override fun convert(helper: BaseViewHolder?, item: ReceivedPayment?) {
        item?.let {
          helper?.setText(R.id.remittance_time,getString(R.string.receivedDate)+item.receivedDate)
          helper?.setText(R.id.remittance_count,getString(R.string.receivedAmount)+item.receivedAmount)
          helper?.setText(R.id.remittance_remark,getString(R.string.remark)+item.remark)
        }
    }
}